package com.haredot.mapper;

import com.haredot.entity.Course;

import java.util.List;

public interface CourseMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Course record);

    Course selectByPrimaryKey(Integer id);

    int updateByPrimaryKey(Course record);

    Course findCourseByName(String name);

    List<Course> findAll();

    int batchRemove(List<Integer> ids);

    List<Course> findCoursesBySno(Long sno);
}